home *** CD-ROM | disk | FTP | other *** search
/ Visual Intercept / Visual Intercept.iso / odbc16.z / oracle.txt < prev    next >
Text File  |  1996-11-08  |  14KB  |  327 lines

  1. SETTING UP THE ODBC ORACLE DRIVER FOR USE WITH THE SQL*NET FOR WINDOWS DLLs
  2.  
  3. This file discusses how to set up the ODBC ORACLE driver to run with your 
  4. ORACLE Server software. To use the ODBC ORACLE driver with any large 
  5. application, such as Microsoft Access, you must use the SQL*Net for Windows 
  6. DLLs. Because the ODBC ORACLE driver is designed to use ORACLE Server 
  7. version 6 and the SQL*Net for Windows DLLs are designed to use ORACLE Server 
  8. version 7, you must be careful to configure your system correctly.
  9.  
  10. If you do not have the SQL*Net for Windows DLLs, or, after following the
  11. instructions in this file, you are still unable to connect to ORACLE Server
  12. with SQL*Net, you can contact Oracle Corp. at 1-800-345-DBMS.
  13.  
  14.  
  15. If ORACLE Server version 6 is already installed on your system
  16. --------------------------------------------------------------
  17.  
  18. To set up the ODBC ORACLE driver and the SQL*Net for Windows DLLs if you 
  19. already have ORACLE Server version 6 on your system:
  20.  
  21. 1.  Make sure you have the correct versions of ORACLE products, including at 
  22.     least one SQL*Net protocol.
  23.  
  24.     Product                                  Version
  25.     --------------------------------         -----------
  26.     ORACLE Installer                         3.0.8.3.7
  27.     Required Support Files                   7.0.12.1.0
  28.     SQL*Net Named Pipes for Windows          1.1.1.3
  29.     SQL*Net SPX for Windows                  1.1.1.5
  30.     SQL*Net TCP/IP for Windows               1.1.7.6
  31.  
  32. 2.  Test your current SQL*Net connection by using an ORACLE tool such as 
  33.     SQL*Plus for Windows.
  34.  
  35. 3.  Search for and delete all copies of ORA6WIN.DLL from your system. A new
  36.     (backwards compatible) version of ORA6WIN.DLL will be installed with the
  37.     ODBC ORACLE driver.
  38.  
  39. 4.  Run the ORACLE Installer program. When asked for your ORACLE installation
  40.     directory, use the suggested default directory C:\ORAWIN.
  41.  
  42. 5.  Run the ORACLE Installer in the ORACLE group in the Program Manager:
  43.  
  44.     a) Install the files from the Required Support Files disk.
  45.  
  46.     b) Install the SQL*Net protocol you will be using. For more information,
  47.        see the ORACLE documentation.
  48.  
  49. 6.  If the following line exists, remove it from your AUTOEXEC.BAT file:
  50.  
  51.       SET CONFIG=<oracle_configuration_file>
  52.  
  53.     Add the following line to your AUTOEXEC.BAT file:
  54.  
  55.       SET CONFIG_FILES=C:\WINDOWS\ORACLE.INI
  56.  
  57.     NOTE: If you are using the MS-DOS 6.0 operating system, add the following 
  58.     line to the end of your AUTOEXEC.BAT file:
  59.  
  60.       SET CONFIG=
  61.  
  62.     ORACLE Server first checks the CONFIG environment variable for the path of
  63.     the ORACLE configuration file. If the CONFIG variable is not set, ORACLE
  64.     Server checks the CONFIG_FILES variable. Because MS-DOS 6.0 can use the 
  65.     CONFIG environment variable during system startup, you must clear this 
  66.     variable before leaving your AUTOEXEC.BAT file. Otherwise, ORACLE Server 
  67.     will use its value as the path of the ORACLE configuration file.
  68.  
  69. 7.  Make sure your PATH variable includes the BIN subdirectories of your
  70.     <oraclehome> directory and the \ORAWIN directory. For example, if your
  71.     <oraclehome> directory is C:\ORACLE6, add the following line to your
  72.     AUTOEXEC.BAT file:
  73.  
  74.       SET PATH=%PATH%;C:\ORACLE6\BIN;C:\ORAWIN\BIN
  75.  
  76. 8.  Paste the contents of your CONFIG.ORA file at the start of your
  77.     ORACLE.INI file. For example, if your CONFIG.ORA file contains:
  78.  
  79.       LANGUAGE=American_America.US7ASCII
  80.       ORACLE_HOME=C:\ORACLE6
  81.       MACHINE_TYPE=J
  82.       SQLPATH=C:\ORACLE6
  83.       WIN_REMOTE_SESSIONS=3
  84.       LOCAL=p:MyServer
  85.  
  86.     and your ORACLE.INI file contains:
  87.  
  88.       [Oracle]
  89.       ORACLE_HOME=C:\ORAWIN
  90.       LANGUAGE=American_America.US7ASCII
  91.       NLS_LANG=ENGLISH
  92.       WIN_LOCAL_SESSIONS=1
  93.       TCP_VENDOR=LANMAN
  94.       TCP_SERVICES_FILE=C:\WINDOWS\SERVICES
  95.  
  96.     then your modified ORACLE.INI file should contain:
  97.  
  98.       LANGUAGE=American_America.US7ASCII
  99.       ORACLE_HOME=C:\ORACLE6
  100.       MACHINE_TYPE=J
  101.       SQLPATH=C:\ORACLE6
  102.       WIN_REMOTE_SESSIONS=3
  103.       LOCAL=p:MyServer
  104.       
  105.       [Oracle]
  106.       ORACLE_HOME=C:\ORAWIN
  107.       LANGUAGE=American_America.US7ASCII
  108.       NLS_LANG=ENGLISH
  109.       WIN_LOCAL_SESSIONS=1
  110.       TCP_VENDOR=LANMAN
  111.       TCP_SERVICES_FILE=C:\WINDOWS\SERVICES
  112.  
  113.     Note that the ORACLE_HOME variable is set twice, once to point to the
  114.     version 6 <oraclehome> directory and once to point to C:\ORAWIN.
  115.  
  116. 9.  If it is not already running, start Windows. Insert the ODBC Setup disk 
  117.     in drive A, choose Run from the Windows Program Manager (or File Manager)
  118.     File menu, and then type "a:\setup.exe" in the Command Line box. For 
  119.     information about using the ODBC Setup program, see the online Help.
  120.  
  121. 10. Run the ODBC Control Panel option and add a data source for your ORACLE
  122.     server. For information about using the ODBC Control Panel option, see
  123.     the online Help.
  124.  
  125. You should now be able to run the ODBC ORACLE driver. You should also be 
  126. able to run ORACLE version 6 and version 7 tools and applications written for 
  127. Windows. All of these can run over SQL*Net for Windows DLLs.
  128.  
  129. NOTE:  Due to differences in memory use, this configuration may not allow you 
  130. to run ORACLE MS-DOS-only tools or applications.
  131.  
  132.  
  133. If ORACLE Server is not installed on your system
  134. ------------------------------------------------
  135.  
  136. To set up the ODBC ORACLE driver and the SQL*Net for Windows DLLs if you do not
  137. have any versions of ORACLE Server on your system:
  138.  
  139. 1.  Make sure that you have the correct versions of ORACLE products, including 
  140.     at least one SQL*Net protocol.
  141.  
  142.     Product                                  Version
  143.     --------------------------------         -----------
  144.     ORACLE Installer                         3.0.8.3.7
  145.     Required Support Files                   7.0.12.1.0
  146.     SQL*Net Named Pipes for Windows          1.1.1.3
  147.     SQL*Net SPX for Windows                  1.1.1.5
  148.     SQL*Net TCP/IP for Windows               1.1.7.6
  149.  
  150.  
  151. 2.  Install the network software connecting your client workstation to the
  152.     server and check that a connection can be made. For example, for the 
  153.     TCP/IP protocol, type "ping <servername>". This connection must work 
  154.     before you install the SQL*Net for Windows DLLs.
  155.  
  156. 3.  Run the ORACLE Installer program. When asked for your ORACLE installation
  157.     directory, use the suggested default directory C:\ORAWIN.
  158.  
  159. 4.  Run the ORACLE Installer in the ORACLE group in the Program Manager:
  160.  
  161.     a) Install the files from the Required Support Files disk.
  162.  
  163.     b) Install the SQL*Net protocol you will be using. For more information,
  164.        see the ORACLE documentation.
  165.  
  166. 5.  Add the following line to your AUTOEXEC.BAT file:
  167.  
  168.       SET CONFIG_FILES=C:\WINDOWS\ORACLE.INI
  169.  
  170.     NOTE: If you are using MS-DOS 6.0, add the following line to the end 
  171.     of your AUTOEXEC.BAT file:
  172.  
  173.       SET CONFIG=
  174.  
  175.     ORACLE Server first checks the CONFIG environment variable for the path of
  176.     the ORACLE configuration file. If the CONFIG variable is not set, ORACLE
  177.     Server checks the CONFIG_FILES variable. Because MS-DOS 6.0 can use the 
  178.     CONFIG environment variable during system startup, you must clear this 
  179.     variable before leaving your AUTOEXEC.BAT file. Otherwise, ORACLE Server 
  180.     will use its value as the path of the ORACLE configuration file.
  181.  
  182. 6.  Make sure your PATH variable includes the C:\ORAWIN\BIN directory. To do
  183.     this, add the following line to your AUTOEXEC.BAT file:
  184.  
  185.       SET PATH=%PATH%;C:\ORAWIN\BIN
  186.  
  187. 7.  So that the ODBC ORACLE driver can use ORACLE version 7 error messages, 
  188.     copy the version 7 error messages to the directory where the ODBC
  189.     ORACLE driver searches for error messages:
  190.  
  191.       COPY C:\ORAWIN\RDBMS70\*.MSB C:\ORAWIN\DBS
  192.  
  193. 8.  Search for and delete all copies of ORA6WIN.DLL from your system. A new
  194.     (backwards compatible) version of ORA6WIN.DLL will be installed with the
  195.     ODBC ORACLE driver.
  196.  
  197. 9.  If it is not already running, start Windows. Insert the ODBC Setup disk
  198.     in drive A, choose Run from the Windows Program Manager (or File Manager)
  199.     File menu, and then type "a:\setup.exe" in the Command Line box. For 
  200.     information about using the ODBC setup program, see the online Help.
  201.  
  202. 10. Run the ODBC Control Panel option and add a data source for your ORACLE
  203.     server. For information about using the ODBC Control Panel option, see
  204.     the online Help.
  205.  
  206. You should now be able to run the ODBC ORACLE driver.
  207.  
  208.  
  209. ORACLE Error Messages
  210. ---------------------
  211. The following section explains what to do when you encounter various error
  212. messages from ORACLE Server through the ODBC ORACLE driver.
  213.  
  214.  
  215. ORA-xxxxx Message not found; product = RDBMS; facility = ORA; language = NULL
  216. -----------------------------------------------------------------------------
  217.  
  218. The ODBC ORACLE driver searches for error messages in the subdirectory that
  219. normally contains the ORACLE version 6 error messages. If you receive this
  220. error, it means that the ODBC ORACLE driver cannot find the error messages.
  221. To fix this:
  222.  
  223. 1.  Check that the CONFIG_FILES variable is set in your AUTOEXEC.BAT file and
  224.     that it points to your ORACLE configuration file (ORACLE.INI). If you are
  225.     using MS-DOS 6.0, check that the CONFIG environment variable is either not 
  226.     set or is cleared in the last line of your AUTOEXEC.BAT file.
  227.  
  228. 2.  Check that the ORACLE_HOME variable is set correctly in your
  229.     C:\WINDOWS\ORACLE.INI file.
  230.  
  231.     If ORACLE Server version 6 was already installed on your system,
  232.     ORACLE_HOME should be set twice. The first time, it should be set to your
  233.     version 6 <oraclehome> directory, usually C:\ORACLE6. The second time, in
  234.     the [Oracle] section of the file, it should be set to C:\ORAWIN.
  235.  
  236.     If ORACLE Server was not installed on your system, ORACLE_HOME should be
  237.     set to C:\ORAWIN.
  238.  
  239. 3.  If you did not have any ORACLE software on your workstation, make sure 
  240.     that you copied all the .MSB files from C:\ORAWIN\RDBMS70 to C:\ORAWIN\DBS.
  241.  
  242. The ODBC ORACLE driver should now be able to print the ORACLE Server error
  243. message, enabling you to fix the problem that generated the error.
  244.  
  245.  
  246. ORA-03121  No interface driver connected -- function not performed
  247. ------------------------------------------------------------------
  248.  
  249. The ODBC ORACLE driver cannot find ORA6WIN.DLL or one of the SQL*Net 
  250. components. Check the following:
  251.  
  252. 1.  Without running the ODBC ORACLE driver, make sure the network connection 
  253.     is valid. For example, type "ping <servername>" for a TCP/IP connection.
  254.  
  255. 2.  Search for and delete old versions of ORA6WIN.DLL. The correct version of
  256.     the ORA6WIN.DLL was installed by the ODBC ORACLE driver in the SYSTEM
  257.     subdirectory of your Windows directory.
  258.  
  259. 3.  Check that the PATH variable contains the BIN subdirectory of the
  260.     <oraclehome> directory (usually C:\ORACLE6\BIN or C:\ORAWIN\BIN).
  261.  
  262. 4.  Check that the CONFIG_FILES variable is set in your AUTOEXEC.BAT file and
  263.     that it points to your ORACLE configuration file (ORACLE.INI). If you are
  264.     using MS-DOS 6.0, check that the CONFIG environment variable is either not 
  265.     set or is cleared in the last line of your AUTOEXEC.BAT file.
  266.  
  267. 5.  Check that SQLTCP.DLL (for TCP/IP), SQLSPX.DLL (for Novell NetWare 
  268.     IPX/SPX), or SQLNMP.DLL (for Named Pipes) is in the ORACLE BIN directory 
  269.     specified in the PATH variable. (If not, SQL*Net was not installed 
  270.     correctly.)
  271.  
  272. 6.  Check that ORA7WIN.DLL and COREWIN.DLL are in the ORACLE BIN directory
  273.     specified in the PATH variable. (If not, SQL*Net was not installed
  274.     correctly.)
  275.  
  276.  
  277. ORA-06120  NETTCP: network driver not loaded
  278. --------------------------------------------
  279.  
  280. This error can occur when ORA6WIN.DLL is loaded but cannot find another
  281. SQL*Net component, such as SQLTCP.DLL.
  282.  
  283. 1.  Check that the directories containing the SQL*Net components are in your
  284.     PATH variable.
  285.  
  286. 2.  Check that the ORACLE_HOME variable is set correctly in your
  287.     C:\WINDOWS\ORACLE.INI file.
  288.  
  289.     If ORACLE Server version 6 was already installed on your system,
  290.     ORACLE_HOME should be set twice. The first time, it should be set to your
  291.     version 6 <oraclehome> directory, usually C:\ORACLE6. The second time, in
  292.     the [Oracle] section of the file, it should be set to C:\ORAWIN.
  293.  
  294.     If ORACLE Server was not installed on your system, ORACLE_HOME should be
  295.     set to C:\ORAWIN.
  296.  
  297. 3.  Search for and delete old versions of ORA6WIN.DLL. The correct version of
  298.     the ORA6WIN.DLL was installed by the ODBC ORACLE driver in the SYSTEM
  299.     subdirectory of your Windows directory.
  300.  
  301. 4.  Check that you have followed all the instructions for the SQL*Net driver
  302.     you are using. For example, for the SQL*Net for TCP/IP driver, make sure
  303.     that all the TSRs, such as NMTSR and SOCKTSR, are loaded. (If not,
  304.     SQL*Net was not installed correctly.)
  305.  
  306.  
  307. ODBC Error Messages
  308. -------------------
  309. The following section explains what to do when you encounter various ODBC
  310. error messages.
  311.  
  312.  
  313. IM003    Driver specified by data source could not be loaded
  314. -----------------------------------------------------------
  315.  
  316. The ODBC Driver Manager is attempting to load the ODBC ORACLE driver
  317. (SQORA.DLL). SQORA.DLL loads ORA6WIN.DLL to connect to the ORACLE server.
  318. You can receive this message if it cannot find ORA6WIN.DLL or finds the wrong
  319. version of ORA6WIN.DLL.
  320.  
  321. 1.  Search for and delete old versions of ORA6WIN.DLL. The correct version of
  322.     the ORA6WIN.DLL was installed by the ODBC ORACLE driver in the SYSTEM
  323.     subdirectory of your Windows directory.
  324.  
  325. 2.  Make sure that ORA6WIN.DLL was installed when the ODBC ORACLE driver was
  326.     installed.
  327.